/**   
 * @Title: BeidanChooseAct.java 
 * @Package com.esun.rabbit2.viewer.mainact.lotteryhallact.beidanagp 
 * @Description: 北单选号投注 
 * @author: kael gaojian@500wan.com  
 * @date: 2012-4-6 下午16:01:18  
 * Copyright: (C) 2011 Shenzhen E-sun Sky Net Technology Co.,ltd.
 */
package com.esun.rabbit2.viewer.mainact.lotteryhallact.beidanagp;

import android.os.Bundle;
import android.view.View;


import com.esun.rabbit2.viewer.mainact.lotteryhallact.SportteryChooseActivity;
import com.esun.ui.R;
/**
 * @ClassName: BeidanChooseAct
 * @Description:北单选号投注
 * @author: kael gaojian@500wan.com
 * @date: 2012-4-6 下午16:01:18
 * 
 */
public class BeidanChooseAct extends SportteryChooseActivity{
	public static int pageFlag = 0;
	
	/**
	 * @field:chooseListPage
	 * @description: 球类彩票的选择比赛界面(非Activity)
	 */
	private BeidanChooseList chooseListPage;
	
	/**
	 * @field:buyLotteryPage
	 * @description: 球类彩票的购买界面(非Activity)
	 */
	private BeidanBuyLottery buyLotteryPage;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		uiInIt();
	}

	/** 
	* @Title: uiInIt 
	* @Description: 初始化
	* @param:     设定文件 
	* @return: void    返回类型 
	* @throws 
	*/
	private void uiInIt() {
	
		View viewChooseList = this.getLayoutInflater().inflate(R.layout.beidan_choose_list, null);
		View viewBuyLottery = this.getLayoutInflater().inflate(R.layout.beidan_buy_lottery, null);

		
		chooseListPage = new BeidanChooseList(this, viewChooseList);

		buyLotteryPage = new BeidanBuyLottery(this, viewBuyLottery);

		chooseListPage.setSportteryBuyLotteryPage(buyLotteryPage);
		buyLotteryPage.setSportteryChooseListPage(chooseListPage);
		
	}

	@Override
	protected View getChooseListPageView() {
		return chooseListPage.getView();
	}

	@Override
	protected View getBuyLotteryPageView() {
		return buyLotteryPage.getView();
	}

	@Override
	public int getPageFlag() {
		return pageFlag;
	}

	@Override
	public void setPageFlag(int i) {
		pageFlag = i;
	}

	@Override
	public int getActiveCount() {
		return buyLotteryPage.getActiveItemNum();
	}
}
